<?php
$T->loadTpl("./html/".$template."/".$qname.".html");
$T->SetTpl('cssjs','html/cssjs.inc'); 
$T->SetTpl('jsmodel','html/jsmodel.inc');     

$id=isset($_GET["id"])?$_GET["id"]:"0";
$T->readDB("select date,FROM_UNIXTIME(attend_am_on,'%Y-%m-%d %H:%i:%s') as attend_am_on,
                        FROM_UNIXTIME(attend_am_off,'%Y-%m-%d %H:%i:%s') as attend_am_off,
                        FROM_UNIXTIME(attend_pm_on,'%Y-%m-%d %H:%i:%s') as attend_pm_on,
                        FROM_UNIXTIME(attend_pm_off,'%Y-%m-%d %H:%i:%s') as attend_pm_off,
            ifnull(late_am,0) as late_am,ifnull(early_am,0) as early_am,ifnull(late_pm,0) as late_pm,ifnull(early_pm,0) as early_pm,remark_late_am,remark_early_am,remark_late_pm,remark_early_pm from sys_attend where id='".$id."'");  

$T->Set("template",$template);         
$T->clearNaN();       
$T->clearNoN();
$T->display(); 